using System;

namespace DecoratorDemo
{
    /// <summary>
    /// 装饰者一
    /// </summary>
    public class Decorator1 : IDecorator
    {
        private IDecorator _decorator;
        public Decorator1(IDecorator decorator)
        {
            _decorator = decorator;
        }

        public string Decorate()
        {
            return $"{_decorator.Decorate()} => 装饰者一";
        }
    }
}
